public class ThreadPoolDemo4 {
    public static void main(String[] args) {
        Thread thread=new Thread(){
            public void run(){
                Thread t=Thread.currentThread();
                System.out.println("任务执行:"+t.getName());
        }
        };
        thread.start();
    }
}
